package ezxpns.table;

import java.util.*;
import ezxpns.types.*;

public class Record
{
	private long id;
	private HashMap<Long,Value<?>> fields;
	Record(long id2)
	{
		id=id2;
		fields=new HashMap<Long,Value<?>>();
	}
	public long getID()
	{
		return id;
	}
	public Value<?> getFieldValue(long columnID)
	{
		if( !fields.containsKey(columnID) ) return null;
		return (Value<?>)fields.get(columnID).copy();
	}
	public void setFieldValue(long columnID,Value<?> value)
	{
		fields.put(columnID,(Value<?>)value.copy());
	}
}
